package com.phone.entity;

import com.phone.servlet.BaseServlet;

import java.util.List;

/**
 * Created by tisen on 2017/8/2.
 */
public class Results<T> {
    private String result;
    private String reason;
//    private String token;
    private int size;
    private int pageSize;
    private int page;
    private List<T> objects;

    public Results() {
        this.result = BaseServlet.ERROR;
    }

    public Results(String result, String reason, int size, int pageSize, int page, List<T> objects) {
        this.result = result;
        this.reason = reason;
        this.size = size;
        this.pageSize = pageSize;
        this.page = page;
        this.objects = objects;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public List<T> getObjects() {
        return objects;
    }

    public void setObjects(List<T> objects) {
        this.objects = objects;
    }
}
